// import com.alibaba.druid.sql.ast.SQLExpr;
// import com.alibaba.druid.sql.dialect.mysql.visitor.MySqlASTVisitor;

#include "MySqlShowOpenTablesStatement.h"
#include "../../../../ast/SQLExpr.h"
#include "../../visitor/MySqlASTVisitor.h"

SQLExpr_ptr MySqlShowOpenTablesStatement::getLike()
{
  return like;
}

void MySqlShowOpenTablesStatement::setLike(SQLExpr_ptr like)
{
  this->like = like;
}

SQLExpr_ptr MySqlShowOpenTablesStatement::getWhere()
{
  return where;
}

void MySqlShowOpenTablesStatement::setWhere(SQLExpr_ptr where)
{
  this->where = where;
}

void MySqlShowOpenTablesStatement::accept0(MySqlASTVisitor_ptr visitor)
{
  if (visitor->visit(SharedObject(MySqlShowOpenTablesStatement)))
  {
    acceptChild(visitor, database);
    acceptChild(visitor, like);
    acceptChild(visitor, where);
  }
  visitor->endVisit(SharedObject(MySqlShowOpenTablesStatement));
}

SQLExpr_ptr MySqlShowOpenTablesStatement::getDatabase()
{
  return database;
}

void MySqlShowOpenTablesStatement::setDatabase(SQLExpr_ptr database)
{
  this->database = database;
}
